package util;

public class NumberUtil {
	public static boolean isContains(Integer[] list, Integer value){
		int i = 0;
		while(i < list.length){
			if(list[i].equals(value))
				return true;
			i++;
		}
		return false;
	}
	public static boolean isAscending(int[] number){
		for (int i = 0; i < number.length-1; i++) {
			if(number[i]>number[i+1])
				return false;
		}
		return true;
	}
	public static boolean isDescending(int[] number){
		for (int i = 0; i < number.length-1; i++) {
			if(number[i]<number[i+1])
				return false;
		}
		return true;
	}
}
